package com.microtf.wx.config;

import com.microtf.wx.server.BaiduAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.io.File;
import java.io.IOException;

@Component
public class ApplicationSchedu {
//    @Autowired
//    BaiduAPI baiduToken;
//    @Scheduled(cron = "*/10 * * * * ?")//秒 分 时 日 月 年
//    public void updateBaiduToken() throws IOException {
//        baiduToken.getPicInfo("/Users/guliuzhong/IdeaProjects/glzaboy/wx-mini-web/src/main/resources/20190628183343.png");
//    }

}
